import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 引入阿里iconfont
import '@/assets/aliiconfont/iconfont.js';
//引入svg组件
import IconSvg from './components/icon-svg.vue'
//全局注册icon-svg
Vue.component('icon-svg', IconSvg);

//import '@/assets/aliiconfont/iconfont.css';

// 注册全局组件
import headers from './components/header.vue';
import Lheaders from './components/Lheader.vue';
import footers from './components/footer.vue';
import AuthModal from './components/auth-modal.vue';
import FeedbackModal from './components/feedback-modal.vue';
import ReportModal from './components/report-modal.vue';

Vue.component('auth-modal', AuthModal); // 注册弹窗组件
Vue.component('feedback-modal', FeedbackModal); // 意见反馈弹窗组件
Vue.component('report-modal', ReportModal); // 一键举报弹窗组件
Vue.component('headers', headers);
Vue.component('Lheaders', Lheaders);

Vue.component('footers', footers);
Vue.use(ElementUI);

// 去掉开发模式下的控制台提示
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
